package com.ruoyi.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 板块对象 section
 *
 * @author jiwei
 * @date 2024-05-17
 */
@TableName(resultMap = "com.ruoyi.web.mapper.SectionMapper.SectionResult")
public class Section extends BaseEntity
        {
private static final long serialVersionUID = 1L;

    /** ID */
        @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 社区ID */
            @Excel(name = "社区ID")
    private Long communityId;

    /** 板块名称 */
            @Excel(name = "板块名称")
    private String name;

    /** 排序 */
            @Excel(name = "排序")
    private Long sort;

    /** $column.columnComment */
    private Date createAt;

    /** $column.columnComment */
    private Date updateAt;

    public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
    public void setCommunityId(Long communityId)
            {
            this.communityId = communityId;
            }

    public Long getCommunityId()
            {
            return communityId;
            }
    public void setName(String name)
            {
            this.name = name;
            }

    public String getName()
            {
            return name;
            }
    public void setSort(Long sort)
            {
            this.sort = sort;
            }

    public Long getSort()
            {
            return sort;
            }
    public void setCreateAt(Date createAt)
            {
            this.createAt = createAt;
            }

    public Date getCreateAt()
            {
            return createAt;
            }
    public void setUpdateAt(Date updateAt)
            {
            this.updateAt = updateAt;
            }

    public Date getUpdateAt()
            {
            return updateAt;
            }

@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("name", getName())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateAt", getUpdateAt())
        .toString();
        }
        }
